import request from '@/utils/request'

//表格
export const welcomeTable = (data) => {
  return request({
    url:`/zhangchen/greet/select`,
    method:'post',
    data
  })
} 

// 添加欢迎语
export const welcomeAdd = (data) => {
  return request({
    url:`/zhangchen/greet`,
    method:'post',
    data
  })
} 

// 添加欢迎语
export const welcomeEdit = (data) => {
  return request({
    url:`/zhangchen/greet`,
    method:'put',
    data
  })
} 

// 删除欢迎语
export const welcomeDelete = (id) => {
  return request({
    url:`/zhangchen/greet/${id}`,
    method:'delete',
    
  })
} 